package com.ruoyi.car.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆车系（关联品牌）对象 t_car_series
 * 
 * @author yby
 * @date 2025-09-01
 */
public class CarSeries extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车系ID */
    private Long id;

    /** 关联品牌ID（t_car_brand.id） */
    @Excel(name = "关联品牌ID", readConverterExp = "t=_car_brand.id")
    private Long brandId;

    /** 车系名称（如“宝马3系”） */
    @Excel(name = "车系名称", readConverterExp = "如=“宝马3系”")
    private String seriesName;


    // 新增：品牌名称（非数据库字段，用于显示）
    @TableField(exist = false)
    private String brandName;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }

    public void setSeriesName(String seriesName) 
    {
        this.seriesName = seriesName;
    }

    public String getSeriesName() 
    {
        return seriesName;
    }

    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brandId", getBrandId())
            .append("seriesName", getSeriesName())
            .append("brandName", getBrandName())
            .toString();
    }
}
